package com.yunhe.assist.repository;

import com.yunhe.assist.domain.Feedback;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description feedback
 * @author dlz
 * @date 2021-11-09
 */
@Repository
public interface FeedbackRepository {

    /**
     * 新增
     * @author dlz
     * @date 2021/11/09
     **/
    int createFeedback(Feedback feedback);

    /**
     * 新增
     * @author dlz
     * @date 2021/11/09
     **/
    int createFeedbackSelective(Feedback feedback);

    /**
     * 刪除
     * @author dlz
     * @date 2021/11/09
     **/
    int deleteFeedbackByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author dlz
     * @date 2021/11/09
     **/
    int updateFeedbackByPrimaryKey(Feedback feedback);

    /**
     * 更新
     * @author dlz
     * @date 2021/11/09
     **/
    int updateFeedbackByPrimaryKeySelective(Feedback feedback);

    /**
     * 根据主键查询
     * @author dlz
     * @date 2021/11/09
     **/
    Feedback searchFeedbackByPrimaryKey(@Param("id") long id);


    List<Feedback> findList(Feedback feedback);
}